package com.lindroy.viewpagerfragmentpractice

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import androidx.fragment.app.FragmentActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        btnOld.setOnClickListener {
            startActivity(Intent(this, SampleActivity::class.java))
        }
        btnNew.setOnClickListener {
            startActivity(Intent(this, SampleActivity2::class.java))
        }
        btnViewPager2.setOnClickListener {
            startActivity(Intent(this, ViewPager2Activity::class.java))
        }
    }

}